Clover coverage report - Enterprise Web Services - 1.0
Coverage timestamp: Mon May 30 2005 17:10:32 CEST
file stats: LOC: 324   Methods: 39
NCLOC: 149   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
MiscInfoImpl.java - 90.2% 89.7% 90%
coverage coverage
 1   
 /*
 2   
  * Copyright 2001-2004 The Apache Software Foundation.
 3   
  * 
 4   
  * Licensed under the Apache License, Version 2.0 (the "License");
 5   
  * you may not use this file except in compliance with the License.
 6   
  * You may obtain a copy of the License at
 7   
  * 
 8   
  *      http://www.apache.org/licenses/LICENSE-2.0
 9   
  * 
 10   
  * Unless required by applicable law or agreed to in writing, software
 11   
  * distributed under the License is distributed on an "AS IS" BASIS,
 12   
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13   
  * See the License for the specific language governing permissions and
 14   
  * limitations under the License.
 15   
  */
 16   
 
 17   
 package org.apache.geronimo.ews.ws4j2ee.context.impl;
 18   
 
 19   
 import org.apache.geronimo.ews.ws4j2ee.context.InputOutputFile;
 20   
 import org.apache.geronimo.ews.ws4j2ee.context.MiscInfo;
 21   
 import org.apache.geronimo.ews.ws4j2ee.context.SEIOperation;
 22   
 import org.apache.geronimo.ews.ws4j2ee.context.webservices.server.interfaces.WSCFHandler;
 23   
 import org.apache.geronimo.ews.ws4j2ee.toWs.GenerationConstants;
 24   
 
 25   
 import java.util.ArrayList;
 26   
 import java.util.Map;
 27   
 
 28   
 /**
 29   
  * @author Srinath Perera(hemapani@opensource.lk)
 30   
  * @see org.apache.geronimo.ews.ws4j2ee.context.MiscInfo
 31   
  */
 32   
 public class MiscInfoImpl implements MiscInfo {
 33   
     private boolean useProvider = false;
 34   
     
 35   
     private ClassLoader classloader;
 36   
     private boolean implwithEJB = true;
 37   
     /* if Impl is avalible the class need not to be created agaien*/
 38   
     private boolean implAvalible = true;
 39   
 
 40   
     private String outputPath = ".";
 41   
     private String j2eelink;
 42   
     private String seiname;
 43   
 
 44   
     private ArrayList operations;
 45   
     private boolean verbose = false;
 46   
     private String wsConfFileLocation;
 47   
 
 48   
     private InputOutputFile wsdlFile;
 49   
     private InputOutputFile jaxrpcfile;
 50   
     private InputOutputFile wsconffile;
 51   
 
 52   
     private String targetJ2EEContainer = GenerationConstants.JBOSS_CONTAINER;
 53   
     private String implStyle = GenerationConstants.USE_LOCAL_AND_REMOTE;
 54   
     private boolean seiExists = false;
 55   
     private ArrayList classpathelements;
 56   
     private boolean compile = true;
 57   
     private Map map;
 58   
 
 59   
     private WSCFHandler[] handlers;
 60   
 
 61  20
     public MiscInfoImpl(Map map) {
 62  20
         this.map = map;
 63  20
         operations = new ArrayList();
 64  20
         targetJ2EEContainer = GenerationConstants.JBOSS_CONTAINER;
 65  20
         implStyle = GenerationConstants.USE_REMOTE;
 66   
     }
 67   
 
 68  128
     public String getOutPutPath() {
 69  128
         return outputPath;
 70   
     }
 71   
 
 72  15
     public void setOutputPath(String string) {
 73  15
         outputPath = string;
 74   
     }
 75   
 
 76  11
     public void validate() {
 77   
     }
 78   
 
 79   
     /**
 80   
      * @return
 81   
      */
 82   
     /* (non-Javadoc)
 83   
      * @see org.apache.geronimo.ews.ws4j2ee.context.MiscInfo#getSEIOperations()
 84   
      */
 85  19
     public ArrayList getSEIOperations() {
 86  19
         return operations;
 87   
     }
 88   
 
 89   
     /* (non-Javadoc)
 90   
      * @see org.apache.geronimo.ews.ws4j2ee.context.MiscInfo#setSEIOperations(java.util.ArrayList)
 91   
      */
 92  40
     public void setSEIOperations(SEIOperation operation) {
 93  40
         this.operations.add(operation);
 94   
     }
 95   
 
 96   
     /**
 97   
      * @return
 98   
      */
 99  110
     public boolean isVerbose() {
 100  110
         return verbose;
 101   
     }
 102   
 
 103   
     /**
 104   
      * @return
 105   
      */
 106  0
     public String getWsConfFileLocation() {
 107  0
         return wsConfFileLocation;
 108   
     }
 109   
 
 110   
     /**
 111   
      * @param b
 112   
      */
 113  15
     public void setVerbose(boolean b) {
 114  15
         verbose = b;
 115   
     }
 116   
 
 117   
     /**
 118   
      * @param string
 119   
      */
 120  0
     public void setWsConfFileLocation(String string) {
 121  0
         wsConfFileLocation = string;
 122   
     }
 123   
 
 124   
     /**
 125   
      * @return
 126   
      */
 127  4
     public String getJ2eeComponetLink() {
 128  4
         return j2eelink;
 129   
     }
 130   
 
 131   
     /**
 132   
      * @param string
 133   
      */
 134  20
     public void setJ2eeComponetLink(String string) {
 135  20
         j2eelink = string;
 136   
     }
 137   
 
 138   
     /**
 139   
      * @return
 140   
      */
 141  37
     public InputOutputFile getJaxrpcfile() {
 142  37
         return jaxrpcfile;
 143   
     }
 144   
 
 145   
     /**
 146   
      * @return
 147   
      */
 148  37
     public InputOutputFile getWsdlFile() {
 149  37
         return wsdlFile;
 150   
     }
 151   
 
 152   
     /**
 153   
      * @param string
 154   
      */
 155  15
     public void setJaxrpcfile(InputOutputFile string) {
 156  15
         jaxrpcfile = string;
 157   
     }
 158   
 
 159   
     /**
 160   
      * @param string
 161   
      */
 162  15
     public void setWsdlFile(InputOutputFile string) {
 163  15
         wsdlFile = string;
 164   
     }
 165   
 
 166   
     /**
 167   
      * @return
 168   
      */
 169  28
     public String getJaxrpcSEI() {
 170  28
         return seiname;
 171   
     }
 172   
 
 173   
     /**
 174   
      * @param string
 175   
      */
 176  22
     public void setJaxrpcSEI(String string) {
 177  22
         seiname = string;
 178   
     }
 179   
 
 180   
     /**
 181   
      * @return
 182   
      */
 183  35
     public String getImplStyle() {
 184  35
         return implStyle;
 185   
     }
 186   
 
 187   
     /**
 188   
      * @return
 189   
      */
 190  20
     public String getTargetJ2EEContainer() {
 191  20
         return targetJ2EEContainer;
 192   
     }
 193   
 
 194   
     /**
 195   
      * @param string
 196   
      */
 197  15
     public void setImplStyle(String string) {
 198  15
         implStyle = string;
 199   
     }
 200   
 
 201   
     /**
 202   
      * @param string
 203   
      */
 204  15
     public void setTargetJ2EEContainer(String string) {
 205  15
         targetJ2EEContainer = string;
 206   
     }
 207   
 
 208   
     /**
 209   
      * @return
 210   
      */
 211  22
     public boolean isImplwithEJB() {
 212  22
         return implwithEJB;
 213   
     }
 214   
 
 215   
     /**
 216   
      * @param b
 217   
      */
 218  17
     public void setImplwithEJB(boolean b) {
 219  17
         implwithEJB = b;
 220   
     }
 221   
 
 222   
     /**
 223   
      * @return
 224   
      */
 225  8
     public boolean isImplAvalible() {
 226  8
         return implAvalible;
 227   
     }
 228   
 
 229   
     /**
 230   
      * @param b
 231   
      */
 232  3
     public void setImplAvalible(boolean b) {
 233  3
         this.implAvalible = b;
 234   
     }
 235   
 
 236   
     /**
 237   
      * @return
 238   
      */
 239  11
     public InputOutputFile getWsconffile() {
 240  11
         return wsconffile;
 241   
     }
 242   
 
 243   
     /**
 244   
      * @param string
 245   
      */
 246  15
     public void setWsconffile(InputOutputFile string) {
 247  15
         wsconffile = string;
 248   
     }
 249   
 
 250   
     /* (non-Javadoc)
 251   
      * @see org.apache.geronimo.ews.ws4j2ee.context.MiscInfo#getHandlers()
 252   
      */
 253  26
     public WSCFHandler[] getHandlers() {
 254  26
         return handlers;
 255   
     }
 256   
 
 257   
     /* (non-Javadoc)
 258   
      * @see org.apache.geronimo.ews.ws4j2ee.context.MiscInfo#setHandlers(org.apache.geronimo.ews.ws4j2ee.context.webservices.server.interfaces.WSCFHandler[])
 259   
      */
 260  15
     public void setHandlers(WSCFHandler[] handlers) {
 261  15
         this.handlers = handlers;
 262   
     }
 263   
 
 264   
     /* (non-Javadoc)
 265   
      * @see org.apache.geronimo.ews.ws4j2ee.context.MiscInfo#isSEIExists()
 266   
      */
 267  0
     public boolean isSEIExists() {
 268  0
         return seiExists;
 269   
     }
 270   
 
 271   
     /* (non-Javadoc)
 272   
      * @see org.apache.geronimo.ews.ws4j2ee.context.MiscInfo#setSEIExists()
 273   
      */
 274  22
     public void setSEIExists(boolean seiExists) {
 275  22
         this.seiExists = seiExists;
 276   
     }
 277   
 
 278   
     /* (non-Javadoc)
 279   
      * @see org.apache.geronimo.ews.ws4j2ee.context.MiscInfo#getClasspathElements()
 280   
      */
 281  11
     public ArrayList getClasspathElements() {
 282  11
         return classpathelements;
 283   
     }
 284   
 
 285   
     /* (non-Javadoc)
 286   
      * @see org.apache.geronimo.ews.ws4j2ee.context.MiscInfo#setClassPathElements()
 287   
      */
 288  11
     public void setClassPathElements(ArrayList classpathelements) {
 289  11
         this.classpathelements = classpathelements;
 290   
     }
 291   
 
 292   
     /**
 293   
      * @return
 294   
      */
 295  11
     public ClassLoader getClassloader() {
 296  11
         return classloader;
 297   
     }
 298   
 
 299   
     /**
 300   
      * @param loader
 301   
      */
 302  11
     public void setClassloader(ClassLoader loader) {
 303  11
         classloader = loader;
 304   
     }
 305   
 
 306   
     /**
 307   
      * @return
 308   
      */
 309  11
     public boolean isCompile() {
 310  11
         return compile;
 311   
     }
 312   
 
 313   
     /**
 314   
      * @param b
 315   
      */
 316  11
     public void setCompile(boolean b) {
 317  11
         compile = b;
 318   
     }
 319   
 
 320  0
     public Object getProprty(Object key) {
 321  0
         return map.get(key);
 322   
     }
 323   
 }
 324